{% extends 'base.html' %}
{% block head %}
	<link href="{{ path }}js/plugins/datatables/DT_bootstrap.css" rel="stylesheet">
	<link href="{{ path }}js/plugins/responsive-tables/responsive-tables.css" rel="stylesheet"> 
    
    <script src="{{ path }}js/demos/demo.tables.js"></script>
    <script src="{{ path }}js/plugins/datatables/jquery.dataTables.js"></script>
    <script src="{{ path }}js/plugins/datatables/DT_bootstrap.js"></script>
	<script src="{{ path }}js/plugins/responsive-tables/responsive-tables.js"></script>
{% endblock %}

{% block contenido %}
	<table class="table table-striped table-bordered table-highlight" id="example">
        <thead>
            <tr>
                <th width="30%">Producto</th>
                <th width="20%">Entidad</th>
                <th width="15%">Fecha Aplicación</th>
                <th width="30%">Observación</th>
                <th "width=5%">Estado</th>
            </tr>
        </thead>
        <tbody>	
	        {% for solicitud in solicitudes %}
				<tr class="{% cycle '' 'odd' %}">
                    <td>{{ solicitud.formulario.titulo }}</td>
                    <td>{{ solicitud.empresa.first_name }}</td>
                    <td style="text-align:center">{{ solicitud.fecha_solicitud }}</td>
                    <td style="text-align:center">{% if solicitud.observacion != Null %} {{ solicitud.observacion }} {% endif %}</td>
                    <td style="text-align:center">{{ solicitud.estado }}</td>
                </tr>
			{% endfor %}
		</tbody>
	</table>
{% endblock %}